home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: howland.reston.ans.net!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: Re: windows c programming-localalloc.
- Message-ID: <DM4rrs.84w@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <31113333.7B7D@Netvision.net.il>
- Date: Fri, 2 Feb 1996 04:14:16 GMT
-
- In article <31113333.7B7D@Netvision.net.il> soulcage <soulcage@Netvision.net.il> writes:
- >i am programming c under windows 3.11
- >i have used malloc to allocate bytes of memory.
- >the program has terminated on protection fault.
- >i have changed the usage instead of malloc,to localalloc and locallock
- >from windows 3.11 SDK,
- >i want to know the outcome of using localalloc,and globalalloc
- >when shall i use any of them.,and is it matter that when i am compiling
- >i get an informative message that the segment will be lost during
- >conversion.
- >
- >tnx ahead.
- use only large model and malloc. Forget about Windows memory
- functions. Also, don't ask Windows questions here - go to
- the comp.os.ms-windows.programmer.* groups for best results.
- If you want more details, ask in the .programmer.memory group
- and I'll answer you there.
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-